[IA64] Clear console page for sioemu
authorAlex Williamson <alex.williamson@hp.com>
Mon, 25 Feb 2008 13:27:21 +0000 (06:27 -0700)
committerAlex Williamson <alex.williamson@hp.com>
Mon, 25 Feb 2008 13:27:21 +0000 (06:27 -0700)
This fixes a bug: by using pfn 0 for console, the page was not cleared,
sometimes causing the domain to fail to boot.

Signed-off-by: Tristan Gingold <tgingold@free.fr>
tools/libxc/ia64/xc_ia64_dom_fwloader.c

index 4f3b25a37d686137f3c10643a668e39fb213c461..e7e1525cdb9451b7651fecd6e67583616a679132 100644 (file)
@@ -58,9 +58,11 @@ static int xc_dom_load_fw_kernel(struct xc_dom_image *dom)
 static int alloc_magic_pages(struct xc_dom_image *dom)
 {
     /* allocate special pages */
-    dom->console_pfn = 0;
-    dom->xenstore_pfn = 1;
-    dom->start_info_pfn = 2;
+    /* Note: do not use 0 for console or xenstore otherwise clear_page won't
+       clear the page.  */
+    dom->start_info_pfn = 0;
+    dom->console_pfn = 1;
+    dom->xenstore_pfn = 2;
     return 0;
 }